package com.loan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.loan.entity.User;
import com.loan.mappers.UserMapper;
import com.loan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserMapperImpl extends ServiceImpl<UserMapper, User> implements UserService{
    /**
     * FBF
     * 用户修改头像接口
     */
    @Autowired
    private UserMapper userMapper;
    @Override
    public int updateIcon(User user) {
    int result = userMapper.updateIcon(user);
        return result;
    }

    @Override
    public int updateUser(User user) {
        int result = userMapper.updateUser(user);
        return result;
    }
}
